<h3><{$smarty.const._MI_OPINION_LIST}></h3>
<div><{$smarty.const._MI_OPINION_LIST_NUM_IS|sprintf:$app.polls.0}></div>
<form action='index.php' method='post'>
<table class="outer" width='100%'>
	<tr><td class='bg2'>
        <table width='100%' border='0' cellpadding='4' cellspacing='1'>
        	<tr class='head'>
				<th><{$smarty.const._MI_OPINION_AF_display}></th>
				<th><{$smarty.const._MI_OPINION_AF_weight}></th>
				<th><{$smarty.const._MI_OPINION_AF_question}></th>
				<th><{$smarty.const._MI_OPINION_LISTITEM_voter_num}></th>
				<th><{$smarty.const._MI_OPINION_LISTITEM_vote_num}></th>
				<th><{$smarty.const._MI_OPINION_LISTITEM_LIMIT}></th>
				<th>&nbsp;</th>
			</tr>
			<{foreach from=$app.polls.1 item=p key=k name=poll}>
			<tr class='<{cycle values="odd,even"}>'>
				<td align='center'>
					<{$smarty.foreach.poll.iteration+$app.offset}>
					&nbsp;
					<input type="checkbox" name='display[<{$p.poll_id}>]' value="1" <{if $p.display}>checked<{/if}>>
				</td>
				<td>
					<input name='weight[<{$p.poll_id}>]' value="<{$p.weight}>" size='6' maxlength='5'>
				</td>
				<td><{$p.question}></td>
				<td align='center'><{$p.votes}></td>
				<td align='center'><{$p.voters}></td>
				<td align="center">
					From:<{"Y-m-d H:i"|date:$p.start_time}><br>
					To:<{"Y-m-d H:i"|date:$p.end_time}><br>
					<{if $p.end_time<$app.now}>
					<span style='color:#ff0000;'><{$smarty.const._MI_OPINION_FINISH}></span><br /><a href='index.php?action_admin_opinion_restart=1&amp;poll_id=<{$p.poll_id}>'><{$smarty.const._MI_OPINION_REOPEN}></a>
					<{else}>
					<{/if}>
				</td>
				<td align='right'>
					<a href='./index.php?action_admin_opinion_edit=1&amp;poll_id=<{$p.poll_id}>'><{$smarty.const._EDIT}></a><br />
					<a href='./index.php?action_admin_opinion_delete=1&amp;poll_id=<{$p.poll_id}>'><{$smarty.const._DELETE}></a><br />
				</td>
			</tr>
			<{/foreach}>
        	<tr class='foot'><td colspan="7">
				<input type="hidden" name="page" value="<{$form.page}>">
				<input type="submit" name="action_admin_opinion_changedisplay" value="<{$smarty.const._MI_OPINION_REORDER_SUBMIT}>">
			</td></tr>
		</table>
	</td></tr>
</table>
</form>
<table width='100%'><tr><td><{$app_ne.pager.all}></td></tr></table>
              